import com.huaban.analysis.jieba.JiebaSegmenter;
import org.apdplat.word.WordSegmenter;
import org.apdplat.word.segmentation.Word;

import java.io.File;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test01 {
    public static void main(String[] args) {

        String regEx = "HTML|html|css|CSS|([Mm]|[Nn])[YyOo](DB|SQL)|SQL|[A-Z]([a-z]+)(DB)|[A-Z]{2,10}|Spring([A-Z]{3})|([sS])pring([BbCc])(oot|loud)|([Jj])ava([Ss])cript|(?=[A-Z]).+?(?=[^a-z])|[\u4e00-\u9fa5]+|[a-z]+";
        Pattern p = Pattern.compile(regEx);
        Matcher m = p.matcher("C++C#cLinuxSQLhtmlcssHTMLCSSMogDBMySQLNoSQLSpringCloudSpringMVCSpringBoot互联网TypeScript0-99人javaSpringPythonJavaScript(123后端开发未融资)前端开发MYSQL");
        while (m.find()){
            String s = m.group();
            System.out.println(s);
        }
//        System.out.println("上市".matches("([未已不天A-Z]).*"));

//        JiebaSegmenter segmenter = new JiebaSegmenter();
//        List<String> result = segmenter.sentenceProcess(s);
//        result.forEach(System.out::println);

    }
}
